/* You can add global styles to this file, and also import other style files */
:root {
    --base-font-size: 14px;    
    --highlight-color: rgb(0, 160, 160);
    --text-color: #333;
    --headings-color: #262a30;
    --export-font-size: 13px;
    --select-text-bg-color: #262a30;    
    --select-text-font-color: #eee;
    --prim-red2:#661f3d;
    --prim-red:#8f1a39;
    
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    border-radius: 10px;
} 

::-webkit-scrollbar-track {
    // background-color: darkgrey;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--prim-red);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

html,
body {
    font-size: 14px;      
    width: 100vw;
    height: 100vh;
    overflow: hidden;  
}
body {
    margin: 0;
    padding: 0;
    font-family: Roboto, "Helvetica Neue", sans-serif;     
}
.bg-blur {
    background: url("http://res.xyzshell.loc/images/th.jpg") no-repeat center center fixed;
    background-size: cover;    
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;    
    z-index: -10;    
    position: absolute;
    filter: blur(10px);
    
}
.man-body {
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
}

.code-block {
    overflow: hidden !important;
}
.katex-block {
    margin: 2em;
}

.page {
    margin: 0 auto;    
    margin-bottom: 4em;
    max-width: 90em;
    min-width: 1000px;
    display: flex;
    flex-direction: column;
    .page-header {
        margin: 1em;
        color: white;
        text-shadow: 2px 2px 6px rgb(0, 0, 0, 0.8);
        letter-spacing: 5px;
        font-size: 1em;
    }
    .page-body {
        padding: 4em;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 1px 2px 0 rgb(0 0 0 / 10%);
    }
}

.edit-box {
    &:focus {
        outline-style: dashed;
    }
}

// markdown
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--headings-color);
    font-weight: 700;
    line-height: 1.5;
    margin: 20px 0 15px;
}
h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 1.75 em;
}

h3 {
    font-size: 1.45em;
}

h4 {
    font-size: 1.25em;
}

h5 {
    font-size: 1.1em;
}

h6 {
    font-size: 1em;
    font-weight: bold;
}
h2,
h3,
h4,
h5 {
    /* border-bottom:1px solid #ccc; */
    /* padding-left: 20px; */
    color: #444;
    padding-bottom: 10px;
}

h2 {
    font-size: 20px;
}
h3 {
    font-size: 18px;
}
h4 {
    font-size: 16px;
}
h5 {
    font-size: 14px;
}
ul,
ol {
    line-height: 1.75rem;
    margin-block-start: 0.6em;
    margin-block-end: 0.6em;
    list-style-position: inside;
}
ul li {
    line-height: 1.75rem;
    margin-block-start: 0.6em;
    margin-block-end: 0.6em;
}
p {
    color: var(--text-color);
    line-height: 1.7rem;
    margin: 0 0 8px;
    table-layout: fixed;
    word-break: break-all;
    overflow: hidden;
}
u {
    text-decoration: none;
    border-bottom: 1px solid #999;
}
a .md-def-url {
    color: #262a30;
}

a {
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: bold;
    transition-duration: 0.5s;
}

a:hover {
    text-decoration: underline;
}
hr {
    background-image: repeating-linear-gradient(-45deg, #ddd, #ddd 4px, transparent 4px, transparent 8px);
    border: 0;
    height: 3px;
    margin: 40px 0;
}

blockquote {
    margin: 0 0 1.11111rem;
    padding: 0.5rem 1.11111rem 0 1.05556rem;
    border-left: 1px solid #d2d2d2;
}
blockquote,
blockquote p {
    line-height: 1.6;
    color: #8f8f8f;
}
p.verse {
    margin-left: 2em;
}

// 表格
table {
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 1em;
    margin: 0 0 20px;
    width: 100%;
}

table tr:nth-child(2n),
thead {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background: #f5f5f5;
}

caption,
td,
th {
    font-weight: 400;
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

table tr th {
    border-bottom: 3px solid #ddd;
    font-weight: 700;
    padding-bottom: 10px;
    background-color: var(--bg-color);
}

td,
th {
    border: 1px solid #ddd;
}

th {
    font-weight: 700;
    padding-bottom: 10px;
}

td {
    border-bottom-width: 1px;
}


